import fetch from 'utils/fetch';
/**
 * 考勤设备
 */
//查询设备类型分页
export function findDeviceByPage(page,rows,fSchoolId,fDeviceId,sPosition,sNumber) {
    const data = {
        fSchoolId,
        fDeviceId,
        sPosition,
        sNumber
    };
    return fetch({
        url: `device/findDeviceByPage/${page}/${rows}`,
        method: 'post',
        data,
    });
}
//查询设备详情
export function getDeviceById(pId) {
    const data = {
        pId 
    };
    return fetch({
        url: 'device/getDeviceById',
        method: 'post',
        data,
    });
}
//设备类型
export function getDeviceList() {
    const data = {
        
    };
    return fetch({
        url: 'device/getDeviceList',
        method: 'post',
        data,
    });
}

 

